package lab02.test16;

public class Test16 {
    public static void main(String[] args) {
        //加法
        Calculate a=new Addition();
        System.out.println("加法："+a.arithmetic(45,36));
        //减法
        Calculate b=new Subtraction();
        System.out.println("减法："+b.arithmetic(23,45));
        //乘法
        Calculate c=new Multiplication();
        System.out.println("乘法："+c.arithmetic(23,45));
        //除法
        Calculate d=new Division();
        System.out.println("除法："+d.arithmetic(23,45));
    }
}
